package com.svconnect.plugin.model.wsdl;


public class SimpleDataType implements IDataType {
	
	public static final SimpleDataType VOID = new SimpleDataType("Void",false);
	
	private String name;
	private boolean nullable = true;
	
	public SimpleDataType() {}
	public SimpleDataType(String name, boolean nullable) {
		this.name = name;
		this.nullable = nullable;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public boolean isNullable() {
		return nullable;
	}
	
	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}	
	
	@Override
	public String toString() {
		return name;
	}
	
}
